'use strict';


/**
 * @param {Egg.Application} app - egg application
 */


module.exports = app => {

  const { router, controller, service, middlewares } = app;

  router.post("/upload/img", middlewares.upload(), controller.upload.uploadQn);

  router.post('/seller/phone/login', controller.seller.sellerPhoneLogin);

  router.post('/message', controller.phoneMessage.message);
  router.post('/get/seller/order', controller.seller.getSellerOrder);
  router.get('/get/seller/info', controller.seller.getSellerInfo);
   router.get('/get/order/by/id', controller.seller.getOrderById);
  router.get('/learn/hot', controller.seller.getLearnHot);
  router.get('/learn/detail', controller.seller.learnDetail);
router.get('/get/today/message', controller.seller.getTodayMessage);
router.get('/user/get/information', controller.seller.getInformation);
  router.get('/get/seller/new/order', controller.seller.getSellerNewOrder);
router.post('/seller/auth/register', controller.seller.sellerAuthRegister);
router.post('/seller/ps/login', controller.seller.sellerPsLogin);
router.post('/update/info/by/ps', controller.seller.updateInfoByPs);
router.post('/update/info/by/phone', controller.seller.updateInfoByPhone);
  router.post('/seller/phone/login', controller.seller.sellerPhoneLogin);
router.post('/save/seller', controller.seller.saveSeller);
 router.post('/update/seller/name', controller.seller.updateSellerName);
  router.get('/get/seller', controller.seller.getSeller);
  router.post('/update/seller/phone', controller.seller.updateSellerPhone);
router.get('/take/order', controller.seller.takeOrder);
router.get('/have/consumer', controller.seller.haveConsumer);
 router.post('/update/address', controller.seller.updateAddress);
 router.get('/change/seller/status', controller.seller.changeSellerStatus);
 router.get('/update/sell/time', controller.seller.updateSellTime);
 router.get('/update/sell/time', controller.seller.updateSellTime);
router.get('/update/child/type', controller.seller.updateChildType);
router.get('/change/consumer/type', controller.seller.changeConsumerType);
 router.get('/get/sell/coupon', controller.seller.getSellCoupon);
 router.get('/update/sell/coupon', controller.seller.updateSellCoupon);
   router.get('/delete/sell/coupon', controller.seller.deleteSellCoupon);
 router.get('/get/seller/img', controller.seller.getSellerImg);
router.post('/update/seller/img', controller.seller.updateSellerImg);
 router.get('/get/seller/auth/detail', controller.seller.getSellerAuthDetail);
 router.get('/update/seller/send', controller.seller.updateSellerSend);
 router.post('/add/feed/back', controller.seller.addFeedBack);
 router.get('/get/sale', controller.seller.getSale);
 router.get('/get/seller/notice', controller.seller.getSellerNotice);
 router.get('/seller/punish', controller.seller.sellerPunish);
router.get('/get/seller/rating', controller.seller.getSellerRating);
router.get('/add/reply', controller.seller.addReply);
 router.get('/get/date/sell/message', controller.seller.getDateSellMessage);
router.get('/get/seller/coupon', controller.seller.getSellerCoupon);
router.post('/update/seller/discount', controller.seller.updateSellDiscount);
router.get('/update/seller/discount/status', controller.seller.updateSellerDiscountStatus);
router.get('/get/seller/activity', controller.seller.getSellerActivity);
router.post('/seller/auth/name', controller.seller.sellerAuthName);
 router.get('/get/auth/seller', controller.seller.getAuthSeller);
router.get('/seller/aggree/document', controller.seller.sellerAggreeDocument);
 router.get('/get/seller/goods/message', controller.seller.getSellGoodsMessage);
 router.post('/add/seller/detail/info', controller.seller.addSellerDetailInfo);
 router.post('/add/goods/item', controller.seller.addGoodsItem);
 router.get('/get/goods/item', controller.seller.getGoodsItem);
 router.post('/add/new/goods/item', controller.seller.addNewGoodsItem);
 router.post('/add/goods/team', controller.seller.addGoodsTeam);
 router.get('/goods/off/line', controller.seller.goodsOffLine);
 router.get('/add/seller/join/activity', controller.seller.addSellerJoinActivity);
  router.get('/get/self/activity', controller.seller.getSelfActivity);
router.get('/test/order/code', controller.seller.testOrderCode);
  router.post('/save/trip/seller', controller.seller.saveTripSeller);
  router.get('/through/seller/auth', controller.seller.throughSellerAuth);
 router.post('/save/seller/server', controller.seller.addSellerServer);
 router.post('/add/new/other/goods/item', controller.seller.addNewOtherGoodsItem);
  router.get('/delete/goods/item', controller.seller.deleteGoodsItem);
 router.get('/delete/goods/name', controller.seller.deleteGoodsName);
 router.get('/update/goods/name', controller.seller.updateGoodsName);
  router.get('/get/all/goods', controller.seller.getAllGoods);
 router.get('/get/update/name', controller.seller.getUpdateName);
 router.get('/get/record', controller.seller.getRecord);
 router.get('/get/stay/detail', controller.seller.getStayDetail);

};
